package com.skb.core.service;

import com.skb.core.dao.CommissionRateDao;
import com.skb.core.model.CommissionRate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

@Service("commissionRateService")
public class CommissionRateService implements ICommissionRateService {

    @Autowired
    private CommissionRateDao commissionRateDao;

    @Override
    public CommissionRate create(CommissionRate commissionRate) {
        return commissionRateDao.create(commissionRate);
    }

    @Override
    public CommissionRate get(Serializable id) {
        return commissionRateDao.get(id);
    }

    @Override
    public CommissionRate update(CommissionRate commissionRate) {
        return commissionRateDao.update(commissionRate);
    }

    @Override
    public void delete(CommissionRate commissionRate) {
        commissionRateDao.delete(commissionRate);
    }
}
